package attack.snowman;

import java.awt.geom.Rectangle2D;

import org.newdawn.slick.Animation;
import org.newdawn.slick.Image;

import framework.BasicFighter;
import framework.Util;
import framework.attack.AnimationAttack;
import attack.nartan.SwordStrike;

public class MultiStrike extends AnimationAttack {

	public MultiStrike(BasicFighter attacker) {
		super(attacker);
		Image[] frames = new Image[3];
		frames[0] = this.spriteSheet.getSprite(1, 2);
		frames[1] = this.spriteSheet.getSprite(2, 2);
		frames[2] = this.spriteSheet.getSprite(2, 2);
		this.attackAnimation = new Animation(frames, 150);
		this.attackAnimation.setDuration(0, 250);
		this.attackAnimationBackward = Util.getFlippedAnimation(this.attackAnimation, true, false);
		this.attacker = attacker;
		this.isJumpingAuthorized = true;
	}

	@Override
	public void trigger() {
		super.trigger();
	}

	@Override
	public boolean isBlocking() {
		return isActive();
	}
	
	@Override
	public void onHit(BasicFighter f, Rectangle2D Collision) {
		// TODO Auto-generated method stub
		super.onHit(f, Collision);
	}

	@Override
	public void onRelease() {
	}
	
}
